home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Joystick Magazine 1996 September
/
cd joy 74 No16.iso
/
pc
/
data
/
cooli
/
agpg
/
agedit.txt
next >
Wrap
Text File
|
1996-06-25
|
10KB
|
196 lines
AG Scenario Editor
- initial release 6/25/96
- Bill Haering
- ewz6ar@meb.em.gmr.com
1.0 introduction
By combining the Panzer General Editor with some Qbasic translation programs an
Allied General Editor has been created. The overall system requires that a few more steps
be executed than with just the Panzer General Editor, but it does provide a functioning
editor for AG scenarios (and I believe it is the first one). In addition, it allows PG
scenario to be used by AG. Conversely, AG scenarios could be used in PG, but some
additional steps would need to be taken (described below).
This package should include the following files
pzgmaped.exe --- these three files
pzgmaped.txt constitute the
pgplay.bat original PG editor
agtopg1.bas --- these five files are the
pgtoag1.bas additions that allow
agtopg.bat the PG editor to edit
pgtoag.bat AG scenarios
readme.txt
*** Note *** This editor is still under development. While it currently supports nearly
all of the functions that the original PG editor does, a few remaining bugs (listed below
section 4.0) are still being worked on. My intention was to get a functioning editor out as
quickly as possible and update it as I go along. While the program shouldn't overwrite
any Original AG or PG files, all standard disclaimers apply. I sum them up as, use at you
own risk. Also the pgplay.bat file isn't necessary to use the AG editor, but is part of the
original PG editor and is included as the documentation that comes with that editor
requests that it be included.
The rest of this description covers the following:
1.1 Overview of Use
2.0 Directory Set-Up
2.1 Additional Files Required for Use
2.2 Copies of Original Scenarios
3.0 Example of Editor Use
3.1 Campaign Use
4.0 Current Limitations
5.0 How AG Scenarios might be used in PG
6.0 Final Remarks
1.1 Overview of Use
In the following description of how to use this editor, it is useful to understand the
general operation of the AG scenario editor. First, an AG scenario (one file) is broken
down into the PG format (three files). The resulting PG scenario representation can then
be edited using the PG editor (see pzgmaped.txt for a description). After saving the
edited PG representation, a separate program combines the three PG format files together
to make a AG scenario file that can be used by AG.
2.0 Directory Set-Up
The translation programs assume a directory structure as follows.
c:\agedit
c:\agedit\ag
c:\agedit\pg
All seven files that are include in this editor should be placed in the c:\agedit directory.
2.1 Additional Files Required for Use
The PG editor that is the heart of this AG editor requires two PG/AG files to operate.
These are the panzequp.eqp and mapnames.str files. Both PG and AG contain copies
of these files, but they are different. To the best of my knowledge that difference lies in
the number of entries of units (and some of the descriptive parameters) in the
panzequp.eqp file, and the number of entries in the mapnames.str file. The file that come
with AG are largesr than the PG ones, and are the one that are needed for this editor to
work. The PG editor will function with either set of those two files, but editing AG
scenarios you will get a non-fatal error if you use the PG files (because the scenarios use
city names or units not include in the PG version of the files). For that reason, use the
AG version of the two files mentioned above. I recommend placing those two files in the
C:\agedit\pg directory.
2.2 Copies of Original Scenarios
Copies of the AG scenario files game0xx.scn (where xx goes from 01 to 39) must be
placed in the c:\agedit\ag directory. They are used as starting points for changes to the
scenario or to create completely different one, and they are also used to get headers that
must be included in the final AG files that aren't stored in the intermediate PG files.
*** Note*** When finally used the edited AG scenario files will overwrite the AG
scenario files (this step is a manual one). As a result, a backup copy must be made. The
scenario files should be on you hard disk under the Scenario sub-directory (of the
directory where Allied Genral is). I suggest making a sub-sub-directory scenario\bak
and storing copies of the 39 scenario files there. Then after you have used the edited
scenarios, you can restore the originals by copying them back into the scenario sub-
directory. Make sure that you have a copy of your edited scenario elsewhere.
PG scenarios can be converted for use in AG. If this is desired, place copies of the PG
scenario files (mapxx.stm,mapxx.set, and game0xx.scn, where xx goes between 01 and
38) into the c:\agedit\pg directory.
*** Note *** both PG and AG uses the filename game0xx.scn (xx goes between 01 and
39). In AG this is the only file used to describe the scenario, while in PG it is one of
three.
3.0 Example of Editor Use
The following example covers editing an existing AG scenario. This is composed of the
following steps
1 Run agtopg.bat
2 Answer questions
- input AG file number 01 - 39 ? (for Crusader enter 03)
- input PG file number 39 - 99 ? (enter any number, ex: 99)
- hit return to continue (hit return)
3 Run pzgmaped.exe and select file just save above (c:\agedit\pg\map99.stm) in this
case. When using the PG editor on AG scenarios, the AXIS and ALLIED labels will be
INTERCHANGED.
4 Save edited file (could be any number from 39 to 99, in this case choose 70)
5 Run pgtoag.bat
6 Answer questions
- input original AG file number 01 - 39 ? (in this case 03, this is to get some header
information and in fact any file number would actually work)
- input PG file number where edited game was saved 39 - 99 ? (70 in his case)
- input new AG file number 01 - 99 (doesn't overwrite original, it's in a different
directory) ? (choose 03, which will mean it will be read in finally as crusader)
7 copy file created in step 6 (game003.scn in this example) to the Allied General
Scenario sub-directory. THIS WILL OVERWRITE THE ORIGINAL SCENARIO FILE,
so you should have made a backup of it (see section 2.2).
8 Run Allied General and chose Scenario Crusader (which is internal scenario number 3)
9 When finished you should copy back-up copy of file back to Allied General Scenario
sub-directory (game003.scn, in this example).
You can read a PG scenario into AG by starting at step 6 and inputting the number of a
preexisting PG scenario (provided that you had previously copied the associated file to
c:\agedit\pg , see section 2.2). Note that the axis will be labeled at allies and vice-a-versa
(see section 4.0).
3.1 Campaign Use
By editing some or all of the scenarios in the AG scenario path, you can change the
individual scenarios in the campaign. The scenarios are numbered consecutively from
right to left in the scenario page. That in combination with the scenario path should
provide enough information.
4.0 Current Limitations
Some of the limitations of this editor are more or less permanent. The reverse labeling of
axis and allied in the editor is unavoidable. Also if PG scenario are read into AG this
reverse labeling will occur. This doesn't affect anything other than the labeling. Thus in
AG scenarios the British, Americans and Russians (and their allies), will be called axis
countries in the PG editor. Their units will be represented by crosses, and the Germans
(and their allies) will be represented by stars. On the other hand if PG scenarios are read
into AG the Germans will have the first turn, and will be labeled with stars. The British,
Russians, or Norwegians will be represented as crosses (in the map view).
There are also some small bugs that I haven't completely worked out. I don't advise
editing the entries in the scenario screen in the PG editor labeled (s+12, s+14, ...,s+25,
...,u-8,...,u-2) as there appears to be an offset that I haven't completely figure out. Take
the values that came with the original AG scenario and leave them alone. How this affects
the PG scenarios that are read into AG, I'm not completely sure, but I need to look at it. I
have read in Warsaw and played it, and it played just fine. Also I haven't been able to
read the first PG scenario, Poland, into AG. For some reason it gives an error. I'm
working on these issues and hope to put out an update.
5.0 How AG Scenarios might be used in PG
In theory there is no reason why AG scenario can't be read into PG. You would just use
steps 1 and 2 outlined in section 3.0. Then follow the instructions for the use of edited
PG scenarios in the pzgmaped.txt file. There are several things to consider. First the
offset in the values mentioned above (section 4.0) would exist in the other direction.
Also the panzeqp.eqp and mapnames.str file for PG don't include all the entries in many
of the AG scenarios. I suspect that the AG copies of these files could be used to eliminate
this problem. Of course given the better AI of AG, I don't know why you would read AG
scenarios into PG.
6.0 Final Remarks
I hope that you find this editor useful. I readily admit that it is a little cumbersome to use.
But then it is currently the only one that I'm aware of.. It includes the source code for the
translation programs in Qbasic (in fact there is no compiled version) and you should feel
free to use it as you please. I invite your questions and comments, but consider the spirit
in which this editor is offered, and the price, free.
Bill Haering
ewz6ar@meb.em.gmr.com